package hys.wssoc.modules.constant;

public class RedisConstants {
    /**
     * redis缓存 锁前缀
     */
    public static final String LOCK_SUFFIX = "LOCK";

    public static final String PROVINCE = "province_";

    public static final String CITY = "city_";

    public static final String COUNTRYSIDE = "countryside_";


    /**
     * 获取redis缓存key
     *
     * @param prefix 前缀
     * @param value  后缀
     * @return redis缓存key
     */
    public static String getRedisKey(String prefix, Object... value) {
        return String.format(prefix, value);
    }

}
